//---------------------------------------------------------------------------

#ifndef infoH
#define infoH
//---------------------------------------------------------------------------
#include "vcl.h"
#endif

class DetailInfo
{
	private:
	int UserID; //UID code
	AnsiString name; //name of the customer
	
	int deposit;
	int accountBalance;
	void databaseConnection();

	struct LOAN
{
	AnsiString itemName;
	bool returned; // true if item already returned, false if it not.
};

struct PURCASE
{
	AnsiString itemName;
	int amount;
	int price;
};

	public:
	DetailInfo();
	PURCASE purcaseItem; //item info of what customer purcase
	LOAN itemloan; // list of item that customer borrow
	bool checkUID(int userID);
	AnsiString get_name(int userID);
	PURCASE get_listPurcase(int userID);
	LOAN get_listLoan(int userID);
	int get_depostit(int userID);
	int get_accountBalance(int userID);
};


